import request from "../utils/request";

export function getManegerList(){
    return request({
        url:"/admin/admin/list",
        method:"get"
    })
}

export function addManegerList(params){
    return request({
        url:"/admin/admin/add",
        method:"post",
        data:params
    })
}
//删除
export function delManegerList(adminid){
    return request({
        url:"/admin/admin/delete",
        method:"post",
        data:{
            adminid
        }
    })
}

//修改管理员新信息
export function updateManegerList(data){
    return request({
        url:"/admin/admin/update",
        method:"post",
        data
    })
}

//获取管理员信息
export function detailManegerList(adminname){
    return request({
        url:"/admin/admin/detail",
        method:"get",
        data:{
            adminname
        }
    })
}